/**
 * 删除文件
*/

#include <stdio.h>
#include <stdlib.h>

#include <unistd.h>

int main(int argc, char **argv)
{

    if (argc < 2)
    {
        printf("Usage : %s remove_filename\n", argv[0]);
        exit(EXIT_FAILURE);
    }

    if (remove(argv[1]) < 0)
    {
        perror("Remove error : ");
        exit(EXIT_FAILURE);
    }

    printf("Remove %s file\n", argv[1]);

    return 0;
}